<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
</head>

<body id="page">

<h2 class="tag">当前位置: 栏目管理 &gt; 添加栏目</h2>
<div class="box">
  <div class="page_menu"><a href="__URL__">栏目列表</a></div>
  <div class="infobox">
    <form name="add" method="post" action="__URL__/add" onSubmit="return checkadd()">
      <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
        <tr>
          <td align="center" class="tdbg">上级分类：</td>
          <td class="tdbg">
         	<select name="pid" >
		   <?php if($pid==0){ ?>
			<option value="0" selected="selected">无（作为一级栏目）</option>
		   <?php }?>
		   <?php foreach($cat as $vo){ ?>
				 <?php if($vo['cid']==$pid){ ?>
					<option value="{$vo['cid']}" selected="selected">{$vo['cname']}</option>
				 <?php } else{?>    
					 <option value="{$vo['cid']}">{$vo['cname']}</option> 
				 <?php } ?> 
			<?php } ?>  
		  </select>	
         </td>
        <tr>
          <td width="120" align="center" class="tdbg">栏目名称：<font color="#FF0000">*</font></td>
          <td class="tdbg"><input name="title" type="text" class="input" id="title" size="50"></td>
        </tr>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">分类关键词：</td>
          <td><textarea name="key" style="width:300px;height:50px;" class="input"></textarea></td>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">分类简介：<font color="#FF0000">*</font></td>
          <td><textarea name="content" style="width:400px;height:50px;" class="input"></textarea></td>
        </tr>
        <tr class="tdbg">
          <td width="100">&nbsp;</td>
          <td>
           <input name="do" type="hidden" value="yes" />
          <input type="submit"  name="update" class="button" value="添加栏目">
            <input type="button" onClick="history.go(-1)" class="button" value="放弃返回"></td>
        </tr>
      </table>
    </form>
  </div>
 </div>
</body>
</html>